package com.leung.mybatisplusstudy.domain.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author 丨一
 * @version 1.0
 * @title UserStatus
 * @description:
 * @date 2024/12/2 下午7:49
 */
@Getter
public enum UserStatus {

    NORMAL(1, "正常"),
    FREEZE(2, "冻结");

    @EnumValue
    private final int value;
    
    @JsonValue
    private final String status;

    UserStatus(int value, String status) {
        this.status = status;
        this.value = value;
    }
}
